package team.gs.model;

import org.andengine.entity.sprite.AnimatedSprite;
import org.andengine.opengl.texture.region.ITiledTextureRegion;
import org.andengine.opengl.vbo.VertexBufferObjectManager;

public abstract class AnimatedSpriteObject extends AnimatedSprite {
	public AnimatedSpriteObject(float pX, float pY, float pWidth,
			float pHeight, ITiledTextureRegion pTiledTextureRegion,
			VertexBufferObjectManager pVertexBufferObjectManager) {
		super(pX, pY, pWidth, pHeight, pTiledTextureRegion,
				pVertexBufferObjectManager);
	}

	@Override
	protected void onManagedUpdate(float pSecondsElapsed) {
		action();
		super.onManagedUpdate(pSecondsElapsed);
	}

	public abstract void action();
}
